/**
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package trim.gui.testing.objects;

import trim.Trim;
import trim.common.inputdata.InputData;
import trim.common.result.TrimResult;
import trim.gui.testing.components.ResultTabPanel;

/**
 *
 * @author Дмитрий
 */
public class ResultsListItem extends TrimResult
{

  private ResultTabPanel resultTabPanel=null;
  private Trim method;
  private InputData inputData;
  private long time;
  private String testName;

  public ResultsListItem(TrimResult trimResult,Trim method,InputData inputData,long time)
  {
    this.addAll(trimResult);
    this.method=method;
    this.inputData=inputData;
    this.time=time;
  }

  public long getTime()
  {
    return time;
  }

  public void setTime(long time)
  {
    this.time=time;
  }

  public InputData getInputData()
  {
    return inputData;
  }

  public String getMethodDescription()
  {
    return method.getName()+" version-"+method.getVersion()+" \n"+method.getDescription();
  }

  public String getMethodName()
  {
    return method.getName();
  }

  public void setInputData(InputData inputData)
  {
    this.inputData=inputData;
  }

  public Trim getMethod()
  {
    return method;
  }

  public ResultTabPanel getResultTabPanel()
  {
    return resultTabPanel;
  }

  public void setResultTabPanel(ResultTabPanel resultTabPanel)
  {
    this.resultTabPanel=resultTabPanel;
  }

  public String getTestName()
  {
    return testName;
  }

  public void setTestName(String testName)
  {
    this.testName=testName;
  }
  
}
